require(['../app/js/main', '../test/weiboapi.fixture'], function() {
  require(['npm/chai/chai', 'npm/mocha/mocha'], function(chai) {
    mocha.setup({
      ui: 'tdd',
      globals: ['baker211b']
    });
    window.assert = chai.assert;

    require(['../test/app', './js/app'], function() {
      mocha.run();
    });
  })
})